<!--演示包括其他模板文件-->
<include file="./Web/Tpl/default/head_inner.html"/>
<div id="body">
    <div class="HeightTab clearfix"></div>
    <!--inner start -->
    <div class="inner">
        <!--left start-->
        <div class="left">
            <div class='Sbox'>
                <!--获取顶级名用：get_first_sortName($type[typeid]) 获取顶级ID：get_first_father($type['typeid'])-->
                <div class='topic'><a href="#">{$type.typename}</a></div>
                <div class="ClassNav">
                    <div class="NavTree">
                        <ul id='suckertree1'>
                            <!--当前级的上一级菜单，本级循环二级-->
                            <php>$fid=get_field('type','typeid='.$type[typeid],'fid');if($fid==0){ $pid=$type[typeid];
                                }else{ $pid=$fid; }
                            </php>
                            <category parentid="$pid" id="vo">
                                <li><A href='{$vo.typeid|url=lists,###}'>{$vo.typename}</A><!--判定是否有子类-->
                                    <php>$cid = get_children($vo['typeid']);if($vo['typeid'] != $cid){</php>
                                    <ul>
                                        <category parentid="$vo[typeid]" id="voo">
                                            <li><a href='{$voo.typeid|url=lists,###}'>{$voo.typename}</a></li>
                                        </category>
                                    </ul>
                                    <php>}</php>
                                </li>
                            </category>
                        </ul>
                    </div>
                </div>
            </div>
            <php>if(!in_array($type['typeid'],array(14,15,16,17,35))){</php>
            <div class='HeightTab clearfix'></div>
            <div class="Sbox">
                <div class="topic">最近更新&nbsp;&nbsp;&nbsp;New</div>
                <div class="list">
                    <dl>
                        <php>$all_ids=get_children($first_id);</php>
                        <arclist model="article" where="typeid in($all_ids)" order="addtime desc" num="5">
                            <dd><a href='{$vo.aid|url=' articles',###}' target='_blank'
                                title='{$vo.title}'>{$vo.title}</a></dd>
                        </arclist>
                    </dl>
                </div>

            </div>

            <div class='HeightTab clearfix'></div>
            <div class="Sbox">
                <div class="topic">热门推荐&nbsp;&nbsp;&nbsp;Hot</div>
                <div class="list">
                    <dl>
                        <arclist model="article" where="typeid in($all_ids)" order="istop desc,ishot desc" num="5">
                            <dd><a href='{$vo.aid|url=' articles',###}' target='_blank'
                                title='{$vo.title}'>{$vo.title}</a></dd>
                        </arclist>
                    </dl>
                </div>
            </div>
            <php>}</php>
            <include file="Public:contact"/>
        </div>
        <!--left end-->
        <!--right start-->
        <div class="right">
            <div class="Position"><span>你的位置：{$nav}</span></div>
            <div class="HeightTab clearfix"></div>
            <!--main start-->
            <div class="main">
                <php>if(count($list)==1){</php>
                <!--content start-->
                <div class="content">
                    {$list[0]['content']}
                    <div class="maincontent clearfix"></div>
                </div>
                <php>}else{</php>
                <div class="ArticleList">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <!--文章列表-->
                        <volist name="list" id="vo">
                            <tr>
                                <td width='90%' class='fw_t'>·<a href='{$vo.aid|url=articles,###}' target='_blank'>
                                    <notempty name="vo.titlecolor"><font color="{$vo.titlecolor}"></notempty>
                                    {$vo.title|msubstr=###,0,38,'utf-8'}
                                    <notempty name="vo.titlecolor"></font></notempty>
                                </a></td>
                                <td width='10%' class='fw_s'>[{$vo.addtime|msubstr=###,0,10}]</td>
                            </tr>
                        </volist>

                    </table>
                    <div class="clearfix"></div>
                    <div class='t_page ColorLink'>{$page}</div>
                </div>
                <php>}</php>
            </div>
        </div>
    </div>
</div>
<include file="$footer"/>